<!doctype html>
<html ng-app="BabbyApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body ng-controller="UserController">
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
    <div class="navbar-header">
        <button class="navbar-toggle collapsed" aria-expanded="false" aria-controls="navbar" type="button" data-toggle="collapse" data-target="#navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">诗玥</a>
    </div>
    <div class="navbar-collapse collapse" id="navbar">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">首页</a></li>
            <li><a href="#about">关于</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
            <li><a ng-if="user.login" href="#">{{ user.name }}</a></li>
        </ul>
    </div><!--/.nav-collapse -->
</div>
</nav>
<div class="container" style='margin-top:50px;'>
    <ol>
        <li ng-repeat="p in posts">{{ p.title }}</li>
    </ol>
    <h1>{{ post.title }}</h1>
    <span>{{ post.keyword }}</span>
    <p>{{ post.create_time }} {{ post.num_of_comments }}</p>
    <div ng-bind-html="post.content | trusted"></div>
</div>

<script src="https://cdn.bootcss.com/angular.js/1.6.4/angular.min.js"></script>
<script src="https://cdn.bootcss.com/angular.js/1.6.4/angular-resource.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="script/app.js"></script>
</body>
</html>
